package cn.gdsdxy.s02mybatis.repository;


import cn.gdsdxy.s02mybatis.entity.Article;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;


import java.util.List;

@Mapper
@Repository
public interface ArticleMapper2 {
    List<Article> getAllArticle();//该方法要执行的SQL语句是通过XML文件定义的
    Article getArticleById(int id);
    int insertArticle(Article article);//添加文章
}
